#include<bits/stdc++.h>
using namespace std;
long long T,n,a[200001],i;
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    scanf("%lld",&T);
    while(T--){
        scanf("%lld",&n);
        for(i=1;i<=n;++i)
            scanf("%lld",&a[i]);
        printf("%lld\n",n);
    }
    return 0;
}
